-- GENERATED SPELL FOR [Rabid Crag Coyote] --


function spell0_2730(pUnit, Event) --@Infected Wound,n/a--
pUnit:FullCastSpellOnTarget(3427,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2730', 30283, 1)
end

function spell1_2730(pUnit, Event) --@Rabies,n/a--
pUnit:FullCastSpellOnTarget(3150,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2730', 0, 1)
end

function Sorts_2730(pUnit, Event)
local choix_sorts_2730 = math.random(0, 1)
if choix_sorts_2730 == 0 then
pUnit:RegisterEvent('spell0_2730', 1, 1)
end
if choix_sorts_2730 == 1 then
pUnit:RegisterEvent('spell1_2730', 1, 1)
end
end

function mob2730_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2730', math.random(1500, 3000), 1)
end

function mob2730_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2730_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2730_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2730, 1, 'mob2730_Action')
RegisterUnitEvent(2730, 2, 'mob2730_Leave')
RegisterUnitEvent(2730, 3, 'mob2730_Kill')
RegisterUnitEvent(2730, 4, 'mob2730_Die')
